<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>全部检测结果</title>
    <script src="js/jquery-3.6.0.js" type="text/javascript"></script>
    <script src="bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <script src="layui/layui.js"></script>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script th:src="@{js/vue.js}"></script>
    <script th:src="@{js/vue-axios.js}"></script>
    <style>
        body{
            margin-top: 0;
            padding: 30px;
        }
    </style>
</head>
<body>
    <div id="ntest">
        <ol class="breadcrumb">
            <li><a href="/mainbg">主页</a></li>
            <li><a href="#">核酸检测</a></li>
            <li><a href="#">用户信息</a></li>
        </ol>
        <table class="table table-bordered table-striped table-hover" style="margin-top: 10px">
            <thead>
            <tr class="info">
                <th>姓名</th>
                <th>电话号码</th>
                <th>身份证号</th>
                <th>检测开始时间</th>
                <th>结果录入时间</th>
                <th>检测结果</th>
                <th>检测机构</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="nucleicAndDection :${nucleicAndDectionList}">
                <td th:text="${nucleicAndDection.userName}"></td>
                <td th:text="${nucleicAndDection.tel}"></td>
                <td th:text="${nucleicAndDection.idCard}"></td>
                <td th:text="${#dates.format(nucleicAndDection.time, 'yyyy-MM-dd HH:mm:ss')}"></td>
                <td th:text="${(nucleicAndDection.endtime==null)?'待录入':#dates.format(nucleicAndDection.endtime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                <td th:text="${(nucleicAndDection.result==null)?'待录入':(nucleicAndDection.result==0?'阴性':'阳性')}"></td>
                <td th:text="${(nucleicAndDection.name==null)?'待录入':nucleicAndDection.name}"></td>
            </tr>
            </tbody>
        </table>
    </div>
</body>
</html>